@extends('layouts.base') @section('content') @parent
<div id="wrapper">
	<div class="main-content container">
		<div class="row small-spacing">
			<div class="col-lg-9 col-xs-9">
				<div class="box-content" id="word">
					<p>{{$start}}</p>
					<h3>{{$iword->word}}</h3>
					<p>
						<span>{{$iword->pron->prus}}&nbsp;&nbsp;{{$iword->pron->pruk}}</span>
					</p>
					<p>
						@if(count($iword->interpret)!=0) @foreach($iword->interpret as $inter)
						<span>
							<i>{{$inter->pos}}</i>
						</span>&nbsp;&nbsp;
						<strong>{{$inter->def}}</strong>
						<br> @endforeach @endif
					</p>
					<p>{{$iword->tips}}</p>

					@if(count($iword->interpretmore)!=0)
					<p>
						<strong>更多{{$iword->word}}翻译</strong>
					</p>
					<p>
						@foreach($iword->interpretmore as $interm)
						<span>
							<strong>{{$interm->pos}}</strong>
						</span>&nbsp;&nbsp; @foreach($interm->def as $defi)
						<span>{{$defi}}</span>&nbsp;&nbsp; @endforeach
						<br> @endforeach </p>@endif
					<p>
						<strong>有关{{$iword->word}}的例句</strong>
					</p>
					@for($i=0;$i
					<min(count($sens),6);$i++) <p>
						<strong>{{$i+1}} .&nbsp;&nbsp;</strong>{{$sens[$i]->sen}}
						<br> {{$sens[$i]->scn}}
						</p>
						@endfor
						<p>{{$end}}</p>
			</div>
			<!-- /.box-content -->
		</div>

		<div class="col-md-3">
			<button class="btn btn-danger btn-mail-main btn-block margin-bottom-20 waves-effect waves-light" data-clipboard-action="copy" data-clipboard-target="#word">一键复制</button>
			<div class="box box-solid">
				<div class="box-body">
					<ul class="nav nav-pills nav-stacked">
						@foreach($cats as $cat)
						<li>
							<a href="{{route('word.index',$cat->slug)}}">
								<i class="fa fa-inbox"></i> {{$cat->name}}
								<span class="label-right bg-info pull-right">{{$cat->words()->count()}}</span>
							</a>
						</li>
						@endforeach
					</ul>
				</div>
				<!-- /.box-body -->
			</div>
			<!-- /. box -->
		</div>
		<!-- /.col-lg-4 col-xs-12 -->
	</div>
	<!-- /.row small-spacing -->
</div>
<!-- /.main-content -->
</div>
<!--/#wrapper -->


@endsection
@section('scriptsafter')@parent
<script src="{{asset('assets/plugin/clipboard/clipboard.min.js')}}"></script>
<script>
var clipboard = new Clipboard('.btn');

    clipboard.on('success', function(e) {
        console.log(e);
    });

    clipboard.on('error', function(e) {
        console.log(e);
    });
</script>
@endsection